//
//  PickViewAlartView.h
//  KEREN
//
//  Created by MW on 2023/3/31.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface PickViewAlartView : UIView<UIPickerViewDelegate,UIPickerViewDataSource>
@property (nonatomic, strong) UIView *backView;
@property (nonatomic, copy) NSString *title;
@property (nonatomic, strong) NSArray *titleArr;
@property (nonatomic, strong) NSString *currentTitle;
@property(copy,nonatomic)void (^changeTitleBlock)(NSString *title);
@property (nonatomic, strong) NSArray *yearArr;
@property (nonatomic, strong) NSArray *monthArr;
@property (nonatomic, strong) NSArray *dayArr;
@property (nonatomic, strong) UIPickerView *pickView;
@property (nonatomic, assign) int currentIndex;
@property (nonatomic, strong) NSDateComponents *comps;
@property (nonatomic, assign) NSInteger year;
@property (nonatomic, assign) NSInteger month;
@property (nonatomic, assign) NSInteger day;
@property (nonatomic, assign) NSInteger yearRow;
@property (nonatomic, assign) NSInteger monthRow;
@property (nonatomic, assign) NSInteger dayRow;

@property (nonatomic, assign) BOOL isCanChooseHistory;

- (instancetype)initWithFrame:(CGRect)frame title:(NSString *)title currentIndex:(int)currentIndex IsCanChooseHistory:(BOOL)isCanChooseHistory;

@end

NS_ASSUME_NONNULL_END
